# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=kismet-earth
pkgver=0.1
pkgrel=11
epoch=1
pkgdesc='Various scripts to convert kismet logs to kml file to be used in Google Earth.'
url='https://www.blackarch.org/'
groups=('blackarch' 'blackarch-wireless')
license=('GPL')
depends=('perl' 'python')
arch=('any')
source=('pykismetearth.py'
        'kismetearth.pl')
sha512sums=('856c58c03347070ed897f734891c69701b3ca4832319859ec2bcf07ea4ac6a9470b48a282deca6f8d6b42bd8c3014d5a33bfddef2b41d2d8bd97f635b05a86db'
            '2fd0c97eebee58235e84a5d10de77d5fc163c165c156658eeecb31a802310de0e501aeccae0276a71210c8656945c4bf9427f40cefd118b0a92ce29e039c0dd4')

prepare() {
  sed -i '1s|/usr/env/python|/usr/bin/env python2|' *.py
}

package() {
  install -Dm 755 pykismetearth.py "$pkgdir/usr/share/$pkgname/pykismetearth.py"
  install -Dm 755 kismetearth.pl "$pkgdir/usr/share/$pkgname/kismetearth.pl"
}

